package com.college_career_system.service.impl;

import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.college_career_system.pojo.po.RecruitType;
import com.college_career_system.dao.RecruitTypeMapper;
import com.college_career_system.service.RecruitTypeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.college_career_system.utils.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Empty
 * @since 2022-12-04
 */
@Service
public class RecruitTypeServiceImpl extends ServiceImpl<RecruitTypeMapper, RecruitType> implements RecruitTypeService {

    @Autowired
    private RecruitTypeMapper recruitTypeMapper;


    @Override
    public JSONObject getAllType() {

        QueryWrapper<RecruitType> wrapper = new QueryWrapper<>();
        return ResponseResult.success(recruitTypeMapper.selectList(wrapper));
    }
}
